/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package logica;

import Logica.Operaciones;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;

/**
 *
 * @author camilo
 */
public class logica {
    
    private int suma;
    private int valmax;
    private float prom;
    private ArrayList arr;
    private Operaciones ope;
    
    
    
    public logica(){
        arr = new ArrayList();
     
    }
    public ArrayList getArr() {
        return arr;
    }

    public void setArr(ArrayList arr) {
        this.arr = arr;
    }

    public float getProm() {
        prom=ope.promedio();
        return prom;
    }

    public void setProm(float prom) {
        this.prom = prom;
    }

    public int getSuma() {
        suma=ope.suma();
        return suma;
    }

    public void setSuma(int suma) {
        this.suma = suma;
    }

    public int getValmax() {
        valmax=ope.valormax();
        return valmax;
    }

    public void setValmax(int valmax) {
        this.valmax = valmax;
    }
    
   public void setY(String y){
        int y1 = Integer.parseInt(y);
        arr.add(y1);
        ope.setAl(arr);
        
    }
   public void setX(String x){
        int x1 = Integer.parseInt(x);
        arr.add(x1);
        ope.setAl(arr);
        
    }
    
    
}
